<template>
  <div class>
    <el-button type="info" @click="logout"> 退出 </el-button>
  </div>
</template>

<script lang='ts'>
export default {
  name: "Home",
  methods: {
    logout() {
      if (window.confirm("是否确认退出？")) {
        window.sessionStorage.clear();
        this.$router.push("/login");
      }
    },
  },
};
</script>

<style lang='less' scoped>
</style>